﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Condimar.Entities;
using Condimar.Repository;
using Microsoft.Practices.Unity;

namespace Condimar.BussinesLogic
{
    public class ClienteNaturalBL:IClienteNaturalBL
    {
        [Dependency]
        public IClienteNaturalRepository cliNatDAO { get; set; }

        public List<ClienteNatural> GetAllFromClienteNatural()
        {
            return cliNatDAO.GetAllFromClienteNatural();
        }

        public List<ClienteNatural> GetAllFromClienteNaturalByCriterio(string criterio)
        {
            return cliNatDAO.GetAllFromClienteNaturalByCriterio(criterio);
        }

        public ClienteNatural GetAllFromClienteNaturalByDni(string dni)
        {
            return cliNatDAO.GetAllFromClienteNaturalByDni(dni);
        }

        public void AddClienteNatural(ClienteNatural cliNatural)
        {
            cliNatDAO.AddClienteNatural(cliNatural);
        }

        public void UpdateClienteNatural(ClienteNatural cliNatural)
        {
            cliNatDAO.UpdateClienteNatural(cliNatural);
        }
    }
}
